#!/bin/bash
# xiognan.yang 钉钉信息同步
#set -x

# echo "$1|$2|$3|$4"


curl 'https://oapi.dingtalk.com/robot/send?access_token=195b033e5499307d8fe28dc690acf4336739f27bd97ab32003248eab1ad516a1' \
   -H 'Content-Type: application/json' \
   -d '
  {"msgtype": "markdown",
    "markdown": {"title":"['"${5}"'] - 环境部署",
        "text": "# '"${2}"' - 简单,可靠 \n > '"${3}"' \n > ![screenshot]('"${6}"') [job查看](https://gitlab.kaolakuaishou.cn/'"${7}"'/'"$4"'/-/jobs/'"$1"') [代码版本查看]('"${8}"')"
     },
    "at": {
        "atMobiles": [
        ],
        "isAtAll": true
    }
  }'

 return 0